<template>
    <el-card shadow="never" class="d-card">
         <template #header>
            <div class="card-header">
                <span>基本信息</span>
            </div>
        </template>
        <el-row class="detail-row">
            <el-col :span="3">
                <span class="label">订单单号</span>
            </el-col>
            <el-col :span="3">
                <span class="detail-item">SO66224CDC360617</span>
            </el-col>
            <el-col :span="3">
                <span class="label">订单类型</span>
            </el-col>
            <el-col :span="3">
                <span class="detail-item">订单收货</span>
            </el-col>
            <el-col :span="3">
                <span class="label">门店编码</span>
            </el-col>
            <el-col :span="3">
                <span class="detail-item">DC36</span>
            </el-col>
            <el-col :span="3">
                <span class="label">门店名称</span>
            </el-col>
            <el-col :span="3">
                <span class="detail-item">果菜加工中心</span>
            </el-col>
        </el-row>
        <el-row class="detail-row">
            <el-col :span="3">
                <span class="label">收货单号</span>
            </el-col>
            <el-col :span="3">
                <span class="detail-item">GR2204131009120609</span>
            </el-col>
            <el-col :span="3">
                <span class="label">供商名称</span>
            </el-col>
            <el-col :span="3">
                <span class="detail-item">北京物美新通路商业有限公司</span>
            </el-col>
            <el-col :span="3">
                <span class="label">收货金额</span>
            </el-col>
            <el-col :span="3">
                <span class="detail-item">67.16</span>
            </el-col>
            <el-col :span="3">
                <span class="label">收货税额</span>
            </el-col>
            <el-col :span="3">
                <span class="detail-item">0</span>
            </el-col>
        </el-row>
        <el-row class="detail-row">
            <el-col :span="3">
                <span class="label">收货日期</span>
            </el-col>
            <el-col :span="3">
                <span class="detail-item">2022-04-13</span>
            </el-col>
            <el-col :span="3">
                <span class="label">订单日期</span>
            </el-col>
            <el-col :span="3">
                <span class="detail-item">2022-04-12</span>
            </el-col>
            <el-col :span="3">
                <span class="label">结算单号</span>
            </el-col>
            <el-col :span="3">
                <span class="detail-item">SN11422022041300075</span>
            </el-col>
        </el-row>
    </el-card>

    <el-card shadow="never" class="d-card" style="margin-top: 10px;">
        <template #header>
            <div class="card-header">
                <span>收货明细</span>
            </div>
        </template>
          <el-table :data="tableData" style="width: 100%">
            <el-table-column prop="date" label="Date" width="180" />
            <el-table-column prop="name" label="Name" width="180" />
            <el-table-column prop="address" label="Address" />
        </el-table>
    </el-card>

    <el-card shadow="never" class="d-card" style="margin-top: 10px;">
        <template #header>
            <div class="card-header">
                <span>变更记录</span>
            </div>
        </template>
        <el-timeline>
            <el-timeline-item timestamp="2018/4/12" placement="top">
            <el-card>
                <h4>Update Github template</h4>
                <p>Tom committed 2018/4/12 20:46</p>
            </el-card>
            </el-timeline-item>
            <el-timeline-item timestamp="2018/4/3" placement="top">
            <el-card>
                <h4>Update Github template</h4>
                <p>Tom committed 2018/4/3 20:46</p>
            </el-card>
            </el-timeline-item>
            <el-timeline-item timestamp="2018/4/2" placement="top">
            <el-card>
                <h4>Update Github template</h4>
                <p>Tom committed 2018/4/2 20:46</p>
            </el-card>
            </el-timeline-item>
        </el-timeline>
    </el-card>

    <el-card shadow="never" class="d-card" style="margin-top: 10px;">
        <template #header>
            <div class="card-header">
                <span>审批记录</span>
            </div>
        </template>
        <el-steps :active="2" align-center>
            <el-step title="Step 1" description="Some description" />
            <el-step title="Step 2" description="Some description" />
            <el-step title="Step 3" description="Some description" />
            <el-step title="Step 4" description="Some description" />
        </el-steps>
    </el-card>
</template>

<script lang="ts" setup>
    import { reactive, onMounted, ref, onBeforeMount, defineAsyncComponent, getCurrentInstance, resolveDynamicComponent } from 'vue'
    const tableData = reactive([
        {
            date: '2016-05-03',
            name: 'Tom',
            address: 'No. 189, Grove St, Los Angeles',
        },
        {
            date: '2016-05-02',
            name: 'Tom',
            address: 'No. 189, Grove St, Los Angeles',
        },
        {
            date: '2016-05-04',
            name: 'Tom',
            address: 'No. 189, Grove St, Los Angeles',
        },
        {
            date: '2016-05-01',
            name: 'Tom',
            address: 'No. 189, Grove St, Los Angeles',
        },
    ]);
</script>

<style scoped>
    .label {
        color: #666666;
        font-size: 14px;
    }

    .detail-row {
        margin-bottom: 15px;
        margin-top: 5px;
    }

    .detail-item {
        text-overflow: ellipsis;
        font-size: 14px;
        color: #191919;
    }
</style>